package com.whminwei.edu.api.school.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.FullHttpResponse;
import com.whminwei.edu.api.school.dto.feq.TrainBaseFeq;
import com.whminwei.edu.api.school.dto.fspn.OrgFspn;
import com.whminwei.edu.api.school.dto.fspn.TrainBaseFspn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangy
 * @since 2024/4/21
 */
@FeignClient(name = "xzzg-pt-school-service", contextId = "org-info", configuration = FullHttpRspnConfig.class)
public interface OrgClient {


    /**
     * 获取机构列表
     *
     * @author wangy
     * @since 11:11 2024/4/12
     **/
    @PostMapping("/org/getOrgList")
    FullHttpResponse<OrgFspn> getOrgList();

    /**
     * 获取基地列表
     * @author wangy
     * @since 11:17 2024/8/7
     * @param req
     * @return com.whminwei.common.http.rspn.FullHttpResponse<com.whminwei.edu.api.school.dto.fspn.TrainBaseFspn>
     **/
    @PostMapping("/org/getTrainBaseList")
    FullHttpResponse<TrainBaseFspn> getTrainBaseList(@RequestBody @Validated TrainBaseFeq req);

}
